$(document).ready(function() {  
alert('Hi');    
	$("#timing").click(function() {
		var docname=$("#docname").val();
		var id=$("#id").val();
		var base_url = $("#base_url").val();
		var path=base_url+"secure/doctor/edit";
		
		var postData = {
			'docname' : docname,
			'id' : id   
			};
			
		$.ajax({
			type : "POST",
			url : path,
			dataType : "json",
			data : postData,
			cache : false,			
			success : function(data)
			{
			$("#err").html(data.message).fadeIn('slow');			
		}
		});
    }); 
});
